package com.huatai.bi.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @description python模板的实体类
 * @author zcw
 * @create 2024-6-19 14:30
 * @TableName python_template_table
 */

@TableName("python_template_table")
@Data
@Accessors(chain = true)
public class PythonTemplateEntity implements Serializable {

	private static final long serialVersionUID = 7411669574975758458L;
	/**
	 * 主键id
	 */
	@TableId
	@ApiModelProperty("主键id")
	private Long id;
	/**
	 * 查询名称
	 */
	@TableField("query_name")
	@ApiModelProperty("查询名称")
	private String queryName;
	/**
	 * 查询文本内容
	 */
	@TableField("query_content")
	@ApiModelProperty("查询文本内容")
	private String queryContent;
	/**
	 * 创建时间
	 */
	@TableField(value = "create_time", fill = FieldFill.INSERT)
	@ApiModelProperty("创建时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date createTime;
	/**
	 * 更新时间
	 */
	@TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
	@ApiModelProperty("更新时间")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	private Date updateTime;

	@TableField("type")
	@ApiModelProperty("类型 ORACLE MYSQL POSTGRESQL")
	private String type;
}
